Python to construct CASE WHEN update SQL statement

join shbcf.ru